package com.lulin.mall.product.fegin;

import com.lulin.common.dto.es.SkuEsModel;
import com.lulin.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author lulin
 * @date 2022/11/14 10:30
 */
@FeignClient("mall-search")
public interface SearchFeginService {
    /**
     * 存储商品数据到ElasticSearch服务
     */
    @PostMapping("/search/save/product")
    R productStatusUp(@RequestBody List<SkuEsModel> skuEsModels);
}
